package com.exchange.web.goods.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.exchange.web.goods.entity.Goods;
import com.exchange.web.goods.entity.MyGoodsParm;
import com.exchange.web.goods.entity.dto.WxIndexParm;
import com.exchange.web.goods.entity.vo.goodsVO;
import com.exchange.web.home.entity.vo.ChartVO;

import java.util.List;


public interface GoodsService extends IService<Goods> {
    //查询我的订单
    IPage<Goods> getMyOrder(MyGoodsParm parm);
    //查询出售订单
    IPage<Goods> getSellOrder(MyGoodsParm parm);

    List<goodsVO> getGoodsList(WxIndexParm parm);

    List<goodsVO> getGoodsIndexList(WxIndexParm parm);

    List<goodsVO> getGoodBuysList(WxIndexParm parm);

    Integer getGoodBuysListTotal(WxIndexParm parm);

    Integer getGoodListTotal(WxIndexParm parm);

    Integer getIndexGoodListTotal(WxIndexParm parm);

    void deleteGoodsReport(Long goodsId);

    List<ChartVO> getChartsByWeek();

    List<ChartVO> getChartsByYear();
}
